package com.example.gymlearning.service;

import com.example.gymlearning.dto.KnowledgePointDTO;
import com.example.gymlearning.entity.KnowledgeClass;
import com.example.gymlearning.entity.KnowledgePoint;

import java.util.List;

/**
 * (KnowledgeCategory)表服务接口
 *
 * @author makejava
 * @since 2025-10-27 21:05:19
 */
public interface KnowledgeCategoryService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    KnowledgeClass queryById(Long id);


    //知识分类相关
    List<KnowledgeClass> getAllCategories();
    KnowledgeClass getCategoryById(Long id);

    //知识点相关的
    List<KnowledgePoint> getKnowledgePointsByCategory(Long categoryId);
    List<KnowledgePoint> getAllKnowledgePoints();
    KnowledgePoint getKnowledgePointById(Long id);

    //获取所有的知识点
    List<KnowledgePointDTO> getAllKnowledgePointsDTO();
    //通过目录获取所有知识点
    List<KnowledgePointDTO> getKnowledgePointsByCategoryDTO(Long categoryId);


}
